//
//  ICTMonitorCollectionViewCell.m
//  WDCollectionView
//
//  Created by  WangDan on 16/3/17.
//  Copyright © 2016年 iCareTech. All rights reserved.
//

#import "TCHomeCollectionViewCell.h"
#import "UIColor+ICT.h"
#import "TCConfiguration.h"

@interface TCHomeCollectionViewCell ()


@end
CGFloat const kImageCompressionRatio = 0.8;

@implementation TCHomeCollectionViewCell

- (instancetype)initWithFrame:(CGRect)frame
{
    self = [super initWithFrame:frame];
    if (self) {
        
        self.backgroundColor = [UIColor whiteColor];
        [self addSubview:self.featureItemBtn];
    }
    
    return self;
}

#pragma mark - getters and setters

-(TCButtonImgTop *)featureItemBtn{
    if (_featureItemBtn == nil) {
        _featureItemBtn = [TCButtonImgTop buttonWithType:UIButtonTypeCustom];
        
        _featureItemBtn.firstLineColor = [UIColor colorWithHex:0x53585F];
        _featureItemBtn.frame = CGRectMake(34, 19, 0, 0);

        
        //iPhone5以上屏幕
        if (UI_SCREEN_HEIGHT >= 568) {
            
            _featureItemBtn.firstFontSize = 14.f;
            _featureItemBtn.firstLineTopOffset = 16.f;
            
        }else{
//            _featureItemBtn.frame = CGRectMake(34 * kImageCompressionRatio, 19, 0, 0);
            
            _featureItemBtn.firstFontSize = 14.f;
            
            _featureItemBtn.firstLineTopOffset = 10.f;
        }
        
    }
    
    return _featureItemBtn;
}

@end
